/*
 * @Descripttion:
 * @Author: YuZhenJing
 * @Date: 2019-12-04 14:00:22
 * @LastEditors  : YuZhenJing
 * @LastEditTime : 2020-01-10 17:46:57
 */

// 设置用户信息
export const SET_USERINFO = (state, userInfo) => {
  state.userInfo = userInfo
}

// 设置功能清单信息
export const SET_MENUINFO = (state, menuInfo) => {
  state.menuInfo = menuInfo
}

// 设置菜单显示状态
export const SET_SHOWMENU = (state, value) => {
  if (!value) {
    return (state.showMenu = !state.showMenu)
  } else {
    return (state.showMenu = value)
  }
}

// 设置系统主题
export const SET_THEME = (state, theme) => {
  return (state.theme = theme)
}
